[INFO] cloning repository https://github.com/AmberCrafter/Rust-embedded_ina266
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AmberCrafter/Rust-embedded_ina266" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmberCrafter%2FRust-embedded_ina266", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmberCrafter%2FRust-embedded_ina266'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 28d5f568c576334b22d57ab84a25baaf088dafb7
[INFO] fixing AmberCrafter/Rust-embedded_ina266 against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmberCrafter%2FRust-embedded_ina266" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-0-tc2/source/.cargo/config
[INFO] started tweaking git repo https://github.com/AmberCrafter/Rust-embedded_ina266
[INFO] finished tweaking git repo https://github.com/AmberCrafter/Rust-embedded_ina266
[INFO] tweaked toml for git repo https://github.com/AmberCrafter/Rust-embedded_ina266 written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AmberCrafter/Rust-embedded_ina266 on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AmberCrafter/Rust-embedded_ina266 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] c8121f350ecf283eef42f1d25812d5992d82d657b8a8af8f4596618fe1f1c645
[INFO] running `Command { std: "docker" "start" "c8121f350ecf283eef42f1d25812d5992d82d657b8a8af8f4596618fe1f1c645", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c8121f350ecf283eef42f1d25812d5992d82d657b8a8af8f4596618fe1f1c645" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c8121f350ecf283eef42f1d25812d5992d82d657b8a8af8f4596618fe1f1c645", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c8121f350ecf283eef42f1d25812d5992d82d657b8a8af8f4596618fe1f1c645" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating Cargo.toml from 2018 edition to 2021
[INFO] [stderr]    Compiling typenum v1.14.0
[INFO] [stderr]    Compiling cortex-m v0.7.3
[INFO] [stderr]    Compiling proc-macro2 v1.0.30
[INFO] [stderr]    Compiling semver v1.0.4
[INFO] [stderr]    Compiling syn v1.0.80
[INFO] [stderr]    Compiling cortex-m-rt v0.6.15
[INFO] [stderr]    Compiling stm32f1 v0.11.0
[INFO] [stderr]     Checking nb v0.1.3
[INFO] [stderr]     Checking volatile-register v0.2.1
[INFO] [stderr]    Compiling stm32f1 v0.12.1
[INFO] [stderr]     Checking embedded-hal v0.2.6
[INFO] [stderr]    Compiling cortex-m v0.6.7
[INFO] [stderr]    Compiling cortex-m-semihosting v0.3.7
[INFO] [stderr]    Compiling rustc_version v0.4.0
[INFO] [stderr]     Checking panic-semihosting v0.5.6
[INFO] [stderr]    Compiling cast v0.2.7
[INFO] [stderr]    Compiling quote v1.0.10
[INFO] [stderr]     Checking generic-array v0.12.4
[INFO] [stderr]     Checking generic-array v0.14.4
[INFO] [stderr]     Checking generic-array v0.13.3
[INFO] [stderr]     Checking as-slice v0.1.5
[INFO] [stderr]     Checking aligned v0.3.5
[INFO] [stderr]    Compiling cortex-m-rt-macros v0.6.15
[INFO] [stderr]     Checking stm32f1xx-hal v0.6.1
[INFO] [stderr]     Checking stm32_ina226 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Migrating src/main.rs from 2018 edition to 2021
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.91s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: stm32f1xx-hal v0.6.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 5`
[INFO] [stderr] crater-edition-check: stm32_ina226 v0.1.0 (/opt/rustwide/workdir) updating edition from 2018 to 2021
[INFO] [stderr]     Checking stm32_ina226 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> src/main.rs:84:19
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let counter = unsafe{
[INFO] [stdout]    |                   ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `error`
[INFO] [stdout]    --> src/main.rs:129:21
[INFO] [stdout]     |
[INFO] [stdout] 129 |                 Err(error) => {
[INFO] [stdout]     |                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_error`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:214:9
[INFO] [stdout]     |
[INFO] [stdout] 214 |     let mut delay = Delay::new(cp.SYST, clocks);
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:227:9
[INFO] [stdout]     |
[INFO] [stdout] 227 |     let mut iic1: TypeI2C1 = BlockingI2c::i2c1(
[INFO] [stdout]     |         ----^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/main.rs:57:16
[INFO] [stdout]    |
[INFO] [stdout] 57 |     static mut BUF: Option<[u8; 16]> = None;
[INFO] [stdout]    |                ^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/main.rs:58:16
[INFO] [stdout]    |
[INFO] [stdout] 58 |     static mut COUNT: Option<usize> = None;
[INFO] [stdout]    |                ^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:138:16
[INFO] [stdout]     |
[INFO] [stdout] 138 |     static mut TIM: Option<CountDownTimer<TIM2>> = None;
[INFO] [stdout]     |                ^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> src/main.rs:84:19
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let counter = unsafe{
[INFO] [stdout]    |                   ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `error`
[INFO] [stdout]    --> src/main.rs:129:21
[INFO] [stdout]     |
[INFO] [stdout] 129 |                 Err(error) => {
[INFO] [stdout]     |                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_error`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:214:9
[INFO] [stdout]     |
[INFO] [stdout] 214 |     let mut delay = Delay::new(cp.SYST, clocks);
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:227:9
[INFO] [stdout]     |
[INFO] [stdout] 227 |     let mut iic1: TypeI2C1 = BlockingI2c::i2c1(
[INFO] [stdout]     |         ----^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/main.rs:57:16
[INFO] [stdout]    |
[INFO] [stdout] 57 |     static mut BUF: Option<[u8; 16]> = None;
[INFO] [stdout]    |                ^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/main.rs:58:16
[INFO] [stdout]    |
[INFO] [stdout] 58 |     static mut COUNT: Option<usize> = None;
[INFO] [stdout]    |                ^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:138:16
[INFO] [stdout]     |
[INFO] [stdout] 138 |     static mut TIM: Option<CountDownTimer<TIM2>> = None;
[INFO] [stdout]     |                ^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.13s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: stm32f1xx-hal v0.6.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 5`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating Cargo.toml from 2018 edition to 2021
[INFO] [stderr]     Checking stm32_ina226 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Migrating src/main.rs from 2021 edition to 2024
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/main.rs:57:16
[INFO] [stdout]    |
[INFO] [stdout] 57 |     static mut BUF: Option<[u8; 16]> = None;
[INFO] [stdout]    |                ^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]   --> src/main.rs:53:1
[INFO] [stdout]    |
[INFO] [stdout] 53 | #[interrupt]
[INFO] [stdout]    | ^^^^^^^^^^^^
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout]    = note: this warning originates in the attribute macro `interrupt` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: errors present after applying fixes to crate `stm32_ina226`
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/main.rs:58:16
[INFO] [stdout]    |
[INFO] [stdout] 58 |     static mut COUNT: Option<usize> = None;
[INFO] [stdout]    |                ^^^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]  --> src/main.rs
[INFO] [stdout] warning: cannot explicitly borrow within an implicitly-borrowing pattern in Rust 2024
[INFO] [stdout]   --> src/main.rs:93:22
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                      ^^^^^^^           ^^^^^^^           ^^^^^^^ explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]    |                      |                 |
[INFO] [stdout]    |                      |                 explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]    |                      explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]    |
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]   --> src/main.rs:93:53
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                                                     ^^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]   --> src/main.rs:93:35
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]   --> src/main.rs:93:17
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout]    = warning: this changes meaning in Rust 2024
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/match-ergonomics.html>
[INFO] [stdout]    = note: `--force-warn rust-2024-incompatible-pat` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: remove the unnecessary binding modifiers
[INFO] [stdout]    |
[INFO] [stdout] 93 -         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout] 93 +         if let (Some(tx), Some(rx), Some(data)) = (
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]   = cause: error: expected item, found `{`
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> src/main.rs:138:16
[INFO] [stdout]     |
[INFO] [stdout] 138 |     static mut TIM: Option<CountDownTimer<TIM2>> = None;
[INFO] [stdout]     |                ^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> src/main.rs:136:1
[INFO] [stdout]     |
[INFO] [stdout] 136 | #[interrupt]
[INFO] [stdout]     | ^^^^^^^^^^^^
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: this warning originates in the attribute macro `interrupt` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]              --> src/main.rs:53:1
[INFO] [stdout] warning: cannot explicitly borrow within an implicitly-borrowing pattern in Rust 2024
[INFO] [stdout]    --> src/main.rs:150:22
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                      ^^^^^^^             ^^^^^^^            ^^^^^^^              ^^^^^^^ explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |                      |                   |                  |
[INFO] [stdout]     |                      |                   |                  explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |                      |                   explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |                      explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:77
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                                                                             ^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:56
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                                                        ^^^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:37
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:17
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout]     = warning: this changes meaning in Rust 2024
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/match-ergonomics.html>
[INFO] [stdout] help: remove the unnecessary binding modifiers
[INFO] [stdout]     |
[INFO] [stdout] 150 -         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout] 150 +         if let (Some(data), Some(iic), Some(delay), Some(led)) = (
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]               |
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/main.rs:57:16
[INFO] [stdout]    |
[INFO] [stdout] 57 |     static mut BUF: Option<[u8; 16]> = None;
[INFO] [stdout]    |                ^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]            53 | { unsafe #[interrupt]}
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/main.rs:58:16
[INFO] [stdout]    |
[INFO] [stdout] 58 |     static mut COUNT: Option<usize> = None;
[INFO] [stdout]    |                ^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]               | ^ expected item
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:138:16
[INFO] [stdout]     |
[INFO] [stdout] 138 |     static mut TIM: Option<CountDownTimer<TIM2>> = None;
[INFO] [stdout]     |                ^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]               |
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr]               = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
[INFO] [stderr]            
[INFO] [stderr]            
[INFO] [stderr]            error: aborting due to 1 previous error
[INFO] [stderr] help: to report this as a bug, open an issue at https://github.com/rust-lang/rust/issues, quoting the full output of this command
[INFO] [stderr] help: to possibly apply more fixes, pass in the `--broken-code` flag
[INFO] [stderr] note: original diagnostics will follow:
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/main.rs:57:16
[INFO] [stdout]    |
[INFO] [stdout] 57 |     static mut BUF: Option<[u8; 16]> = None;
[INFO] [stdout]    |                ^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]   --> src/main.rs:53:1
[INFO] [stdout]    |
[INFO] [stdout] 53 | #[interrupt]
[INFO] [stdout]    | ^^^^^^^^^^^^
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout]    = note: this warning originates in the attribute macro `interrupt` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: errors present after applying fixes to crate `stm32_ina226`
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/main.rs:58:16
[INFO] [stdout]    |
[INFO] [stdout] 58 |     static mut COUNT: Option<usize> = None;
[INFO] [stdout]    |                ^^^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]  --> src/main.rs
[INFO] [stdout] warning: cannot explicitly borrow within an implicitly-borrowing pattern in Rust 2024
[INFO] [stdout]   --> src/main.rs:93:22
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                      ^^^^^^^           ^^^^^^^           ^^^^^^^ explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]    |                      |                 |
[INFO] [stdout]    |                      |                 explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]    |                      explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]    |
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]   --> src/main.rs:93:53
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                                                     ^^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]   --> src/main.rs:93:35
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]   --> src/main.rs:93:17
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout]    = warning: this changes meaning in Rust 2024
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/match-ergonomics.html>
[INFO] [stdout]    = note: `--force-warn rust-2024-incompatible-pat` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: remove the unnecessary binding modifiers
[INFO] [stdout]    |
[INFO] [stdout] 93 -         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout] 93 +         if let (Some(tx), Some(rx), Some(data)) = (
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]   = cause: error: expected item, found `{`
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> src/main.rs:138:16
[INFO] [stdout]     |
[INFO] [stdout] 138 |     static mut TIM: Option<CountDownTimer<TIM2>> = None;
[INFO] [stdout]     |                ^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> src/main.rs:136:1
[INFO] [stdout]     |
[INFO] [stdout] 136 | #[interrupt]
[INFO] [stdout]     | ^^^^^^^^^^^^
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: this warning originates in the attribute macro `interrupt` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]              --> src/main.rs:53:1
[INFO] [stdout] warning: cannot explicitly borrow within an implicitly-borrowing pattern in Rust 2024
[INFO] [stdout]    --> src/main.rs:150:22
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                      ^^^^^^^             ^^^^^^^            ^^^^^^^              ^^^^^^^ explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |                      |                   |                  |
[INFO] [stdout]     |                      |                   |                  explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |                      |                   explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |                      explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:77
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                                                                             ^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:56
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                                                        ^^^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:37
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:17
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout]     = warning: this changes meaning in Rust 2024
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/match-ergonomics.html>
[INFO] [stdout] help: remove the unnecessary binding modifiers
[INFO] [stdout]     |
[INFO] [stdout] 150 -         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout] 150 +         if let (Some(data), Some(iic), Some(delay), Some(led)) = (
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]               |
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/main.rs:57:16
[INFO] [stdout]    |
[INFO] [stdout] 57 |     static mut BUF: Option<[u8; 16]> = None;
[INFO] [stdout]    |                ^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]            53 | { unsafe #[interrupt]}
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/main.rs:58:16
[INFO] [stdout]    |
[INFO] [stdout] 58 |     static mut COUNT: Option<usize> = None;
[INFO] [stdout]    |                ^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]               | ^ expected item
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:138:16
[INFO] [stdout]     |
[INFO] [stdout] 138 |     static mut TIM: Option<CountDownTimer<TIM2>> = None;
[INFO] [stdout]     |                ^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]               |
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr]               = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
[INFO] [stderr]            
[INFO] [stderr]            
[INFO] [stderr]            error: aborting due to 1 previous error
[INFO] [stderr] help: to report this as a bug, open an issue at https://github.com/rust-lang/rust/issues, quoting the full output of this command
[INFO] [stderr] help: to possibly apply more fixes, pass in the `--broken-code` flag
[INFO] [stderr] note: original diagnostics will follow:
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.57s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: stm32f1xx-hal v0.6.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 5`
[INFO] [stderr] crater-edition-check: stm32_ina226 v0.1.0 (/opt/rustwide/workdir) updating edition from 2021 to 2024
[INFO] [stderr]     Checking stm32_ina226 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/main.rs:57:16
[INFO] [stdout]    |
[INFO] [stdout] 57 |     static mut BUF: Option<[u8; 16]> = None;
[INFO] [stdout]    |                ^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]   --> src/main.rs:53:1
[INFO] [stdout]    |
[INFO] [stdout] 53 | #[interrupt]
[INFO] [stdout]    | ^^^^^^^^^^^^
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout]    = note: this warning originates in the attribute macro `interrupt` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/main.rs:58:16
[INFO] [stdout]    |
[INFO] [stdout] 58 |     static mut COUNT: Option<usize> = None;
[INFO] [stdout]    |                ^^^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot explicitly borrow within an implicitly-borrowing pattern
[INFO] [stdout]   --> src/main.rs:93:22
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                      ^^^^^^^           ^^^^^^^           ^^^^^^^ explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]    |                      |                 |
[INFO] [stdout]    |                      |                 explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]    |                      explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/reference/patterns.html#binding-modes>
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]   --> src/main.rs:93:53
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                                                     ^^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]   --> src/main.rs:93:35
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]   --> src/main.rs:93:17
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] help: remove the unnecessary binding modifiers
[INFO] [stdout]    |
[INFO] [stdout] 93 -         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout] 93 +         if let (Some(tx), Some(rx), Some(data)) = (
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> src/main.rs:84:19
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let counter = unsafe{
[INFO] [stdout]    |                   ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `error`
[INFO] [stdout]    --> src/main.rs:129:21
[INFO] [stdout]     |
[INFO] [stdout] 129 |                 Err(error) => {
[INFO] [stdout]     |                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_error`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> src/main.rs:138:16
[INFO] [stdout]     |
[INFO] [stdout] 138 |     static mut TIM: Option<CountDownTimer<TIM2>> = None;
[INFO] [stdout]     |                ^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> src/main.rs:136:1
[INFO] [stdout]     |
[INFO] [stdout] 136 | #[interrupt]
[INFO] [stdout]     | ^^^^^^^^^^^^
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: this warning originates in the attribute macro `interrupt` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot explicitly borrow within an implicitly-borrowing pattern
[INFO] [stdout]    --> src/main.rs:150:22
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                      ^^^^^^^             ^^^^^^^            ^^^^^^^              ^^^^^^^ explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |                      |                   |                  |
[INFO] [stdout]     |                      |                   |                  explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |                      |                   explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |                      explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/reference/patterns.html#binding-modes>
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:77
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                                                                             ^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:56
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                                                        ^^^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:37
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:17
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] help: remove the unnecessary binding modifiers
[INFO] [stdout]     |
[INFO] [stdout] 150 -         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout] 150 +         if let (Some(data), Some(iic), Some(delay), Some(led)) = (
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:214:9
[INFO] [stdout]     |
[INFO] [stdout] 214 |     let mut delay = Delay::new(cp.SYST, clocks);
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:227:9
[INFO] [stdout]     |
[INFO] [stdout] 227 |     let mut iic1: TypeI2C1 = BlockingI2c::i2c1(
[INFO] [stdout]     |         ----^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/main.rs:57:16
[INFO] [stdout]    |
[INFO] [stdout] 57 |     static mut BUF: Option<[u8; 16]> = None;
[INFO] [stdout]    |                ^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]   --> src/main.rs:53:1
[INFO] [stdout]    |
[INFO] [stdout] 53 | #[interrupt]
[INFO] [stdout]    | ^^^^^^^^^^^^
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout]    = note: this warning originates in the attribute macro `interrupt` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]   --> src/main.rs:58:16
[INFO] [stdout]    |
[INFO] [stdout] 58 |     static mut COUNT: Option<usize> = None;
[INFO] [stdout]    |                ^^^^^ use of mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot explicitly borrow within an implicitly-borrowing pattern
[INFO] [stdout]   --> src/main.rs:93:22
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                      ^^^^^^^           ^^^^^^^           ^^^^^^^ explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]    |                      |                 |
[INFO] [stdout]    |                      |                 explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]    |                      explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/reference/patterns.html#binding-modes>
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]   --> src/main.rs:93:53
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                                                     ^^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]   --> src/main.rs:93:35
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]   --> src/main.rs:93:17
[INFO] [stdout]    |
[INFO] [stdout] 93 |         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] help: remove the unnecessary binding modifiers
[INFO] [stdout]    |
[INFO] [stdout] 93 -         if let (Some(ref mut tx), Some(ref mut rx), Some(ref mut data)) = (
[INFO] [stdout] 93 +         if let (Some(tx), Some(rx), Some(data)) = (
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> src/main.rs:84:19
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let counter = unsafe{
[INFO] [stdout]    |                   ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `error`
[INFO] [stdout]    --> src/main.rs:129:21
[INFO] [stdout]     |
[INFO] [stdout] 129 |                 Err(error) => {
[INFO] [stdout]     |                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_error`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> src/main.rs:138:16
[INFO] [stdout]     |
[INFO] [stdout] 138 |     static mut TIM: Option<CountDownTimer<TIM2>> = None;
[INFO] [stdout]     |                ^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> src/main.rs:136:1
[INFO] [stdout]     |
[INFO] [stdout] 136 | #[interrupt]
[INFO] [stdout]     | ^^^^^^^^^^^^
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: this warning originates in the attribute macro `interrupt` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot explicitly borrow within an implicitly-borrowing pattern
[INFO] [stdout]    --> src/main.rs:150:22
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                      ^^^^^^^             ^^^^^^^            ^^^^^^^              ^^^^^^^ explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |                      |                   |                  |
[INFO] [stdout]     |                      |                   |                  explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |                      |                   explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |                      explicit `ref` binding modifier not allowed when implicitly borrowing
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/reference/patterns.html#binding-modes>
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:77
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                                                                             ^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:56
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                                                        ^^^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:37
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] note: matching on a reference type with a non-reference pattern implicitly borrows the contents
[INFO] [stdout]    --> src/main.rs:150:17
[INFO] [stdout]     |
[INFO] [stdout] 150 |         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ this non-reference pattern matches on a reference type `&mut _`
[INFO] [stdout] help: remove the unnecessary binding modifiers
[INFO] [stdout]     |
[INFO] [stdout] 150 -         if let (Some(ref mut data), Some(ref mut iic), Some(ref mut delay), Some(ref mut led)) = (
[INFO] [stdout] 150 +         if let (Some(data), Some(iic), Some(delay), Some(led)) = (
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `stm32_ina226` (bin "stm32_ina226" test) due to 2 previous errors; 7 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:214:9
[INFO] [stdout]     |
[INFO] [stdout] 214 |     let mut delay = Delay::new(cp.SYST, clocks);
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:227:9
[INFO] [stdout]     |
[INFO] [stdout] 227 |     let mut iic1: TypeI2C1 = BlockingI2c::i2c1(
[INFO] [stdout]     |         ----^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `stm32_ina226` (bin "stm32_ina226") due to 2 previous errors; 7 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "c8121f350ecf283eef42f1d25812d5992d82d657b8a8af8f4596618fe1f1c645", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c8121f350ecf283eef42f1d25812d5992d82d657b8a8af8f4596618fe1f1c645", kill_on_drop: false }`
[INFO] [stdout] c8121f350ecf283eef42f1d25812d5992d82d657b8a8af8f4596618fe1f1c645
